<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml"> 
 
<head> 
	<meta http-equiv="Content-type" content="text/html; charset=utf-8" /> 
	<title>湖南省自来水公司营销管理信息系统</title> 
	
	<link rel="stylesheet" href="../../../css/reset.css" type="text/css" media="screen" title="no title" />
	<link rel="stylesheet" href="../../../css/text.css" type="text/css" media="screen" title="no title" />
	<link rel="stylesheet" href="../../../css/form.css" type="text/css" media="screen" title="no title" />
	<link rel="stylesheet" href="../../../css/buttons.css" type="text/css" media="screen" title="no title" />
	<link rel="stylesheet" href="../../../css/grid.css" type="text/css" media="screen" title="no title" />
	<link rel="stylesheet" href="../../../css/layout.css" type="text/css" media="screen" title="no title" />
	
	<link rel="stylesheet" href="../../../css/ui-darkness/jquery-ui-1.8.12.custom.css" type="text/css" media="screen" title="no title" />
	<link rel="stylesheet" href="../../../css/plugin/jquery.visualize.css" type="text/css" media="screen" title="no title" />
	<link rel="stylesheet" href="../../../css/plugin/facebox.css" type="text/css" media="screen" title="no title" />
	<link rel="stylesheet" href="../../../css/plugin/uniform.default.css" type="text/css" media="screen" title="no title" />
	<link rel="stylesheet" href="../../../css/plugin/dataTables.css" type="text/css" media="screen" title="no title" />
	
	<link rel="stylesheet" href="../../../css/custom.css" type="text/css" media="screen" title="no title">
	
</head> 
 
<body> 

<div id="wrapper">	
	
	<#include "../common/header.ftl"/>

	
	<div id="content" class="xgrid">
		
 		
		<div class="x12">
			
			<h2>正在等待【交施工费】的工单</h2>
			
			<table class="data display">
					<thead>
						<tr>
							<th width="120">工单号</th>
							<th width="60">类型</th>
							<th width="80">进度</th>
							<th width="90">当前处理部门</th>
							<th width="100">最后操作日期</th>
							<th width="200">用户名称</th>
							<th></th>
						</tr>
					</thead>
					<tbody>
					<#list list as item>
                    <tr class="odd">
                        <td><a href="/beOrder/be_orderlnfo?orderno=${item.OrderNo}&OrderType=${item.OrderType}" target="orderInfo">${item.OrderNo}</a></td>
							<#switch item.OrderType>
								<#case 1>
								  <td>新户</td>
									<#break>
								<#case 2>
								 <td>分户</td>
									<#break>
								<#case 3>
								 <td>过户</td>
									<#break>
								<#case 4>
								 <td>代扣</td>
									<#break>
								<#case 5>
								 <td>换表</td>
									<#break>
								<#case 6>
								 <td>重签</td>
									<#break>
								<#case 7>
								 <td>销户</td>
									<#break>
								<#default>
							</#switch>
                        <td>${item.StepName}</td>
                        <td>${item.DeptName}</td>
                        <td>${item.LastEditDate?string('yyyy -MM-dd')}</td>
                        <td>${item.UserName}</td>
							<#if item.StepID==0||item.StepID==-1>
							<td></td>
							<#else>
								<td>
                                    <button class="btn-icon btn-small btn-blue btn-check" onClick="location.href ='/beOrder/shigong?ono=${item.OrderNo}';"><span></span>处理</button>
                                </td>
							</#if>

                    </tr>
					</#list>
					</tbody>
				</table>
				<div class="page">
                    <a href="/beOrder/start?stat=1&type=pays">第一页</a>
                    <a href="/beOrder/start?stat=${page.pagenum-1}&type=pays" id="oo"><input type="hidden" id="syy" value="${page.pagenum-1}">上一页</a>
                    <input class="pageIndex" value="${page.pagenum}" id="pn"/> / <input class="pageCount" readonly="readonly" value="${page.pages}" id="zongpage"/>
                    <a href="/beOrder/start?stat=${page.pagenum+1}&type=pays" id="dd">下一页</a>
                    <a href="/beOrder/start?stat=${page.pages}&type=pays">第未页</a>
				</div>
			
		</div> <!-- .x12 -->
		
	</div> <!-- #content -->
	
	<div id="footer">		
		<div class="content_pad">			
			<p>&copy; 2013-11 版权所有 <a href="#">湖南省自来水公司</a>.   技术支持 <a href="#">华瑞教育</a>.</p>
		</div> <!-- .content_pad -->
	</div> <!-- #footer -->
	
</div> <!-- #wrapper -->

<script src="../../../js/jquery/jquery-1.5.2.min.js"></script>
<script src="../../../js/jquery/jquery-ui-1.8.12.custom.min.js"></script>
<script src="../../../js/misc/excanvas.min.js"></script>
<script src="../../../js/jquery/facebox.js"></script>
<script src="../../../js/jquery/jquery.visualize.js"></script>
<script src="../../../js/jquery/jquery.dataTables.min.js"></script>
<script src="../../../js/jquery/jquery.tablesorter.min.js"></script>
<script src="../../../js/jquery/jquery.uniform.min.js"></script>
<script src="../../../js/jquery/jquery.placeholder.min.js"></script>

<script src="../../../js/widgets.js"></script>
<script src="../../../js/dashboard.js"></script>

<script type="text/javascript">
	
$(document).ready ( function () 
{
	Dashboard.init ();		
});

$(function () {
    //上一页
    $("#oo").click(function () {
        var opage=$("#syy").val();
        if (opage<=0) {
            return false;
        }
    })
    //下一页
    $("#dd").click(function () {
        var nextpage=$("#pn").val();
        var sizepage=$("#zongpage").val();
        if (nextpage==sizepage) {
            return false;
        }
    })
    //失去焦点查询指定页
    $("#pn").blur(function(){
        var nextpage=$("#pn").val();
        var sizepage=$("#zongpage").val();
        if (nextpage>sizepage) {
            alert("大于最大页")
            $("#pn").html("")
            return false;
        }
        if (nextpage<=0) {
            alert("输入有误")
            $("#pn").html("")
            return false;
        }
        window.location.href="http://localhost:8090//beOrder/start?stat="+nextpage+"&type=pays";
    })


})

</script>

</body> 
 
</html>